import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// import Pages from 'vite-plugin-pages'
// @ts-ignore
import vueJsxPlugin from '@vitejs/plugin-vue-jsx';
import * as path from 'path';
import VueSetupExtend from 'vite-plugin-vue-setup-extend'

// https://vitejs.dev/config/
export default defineConfig({
  resolve: {
    //设置别名
    alias: {
        '@': path.resolve(__dirname, './src'),
        // public: path.resolve(__dirname, './public'),
    },
  },
  plugins: [
    vue(),
    VueSetupExtend(),
    vueJsxPlugin()
  ],
})
